import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import './plugins/axios'
import router from './router'

Vue.config.productionTip = false
Vue.mixin({
  computed: {
    uploadsUrl() {
      return this.$http.defaults.baseURL + 'uploads/'
    }
  },
  methods: {
    getAuthHeaders() {
      return {
        Authorization: "Bearer " + localStorage.token || ""
      }
    }
  }
})
window.vue = new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
